import { postTestLoginWxMin } from '@/api/profile'
export default {
  // 命名空间
  namespaced: true,
  state: {
    userInfo: ''
  },
  getters: {},
  mutations: {
    setuserInfo(state, playload) {
      state.userInfo = playload
    }
  },
  actions: {
    async fetchWxLogin(store, params) {
      const res = await postTestLoginWxMin(params)
      store.commit('setuserInfo', res.result)
      console.log(res);
    }
  },
};
